package com.huawei.appmarket.service.store.awk.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appmarket.service.store.awk.card.SubstanceTitleCard;
import o.azb;
import o.cdr;
import o.cih;
import o.ewm.d;
import o.ewm.h;

public class SubstanceTitleNode extends cdr {
    public SubstanceTitleNode(Context context) {
        super(context, 1);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        View inflate = LayoutInflater.from(this.ॱ).inflate(h.ˏˌ, null);
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        layoutParams.bottomMargin = (int) viewGroup.getContext().getResources().getDimension(d.ॱˋ);
        inflate.setLayoutParams(layoutParams);
        inflate.setPadding(azb.ˊ(this.ॱ), inflate.getPaddingTop(), azb.ˏ(this.ॱ), inflate.getPaddingBottom());
        cih substanceTitleCard = new SubstanceTitleCard(this.ॱ);
        substanceTitleCard.ˏ(inflate);
        ˊ(substanceTitleCard);
        viewGroup.addView(inflate);
        return true;
    }
}
